using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Splino.DrawObject
{
    /// <summary>
    /// A form that displays the Draw Objects toolbar
    /// </summary>
    public partial class DrawToolbar : Form
    {
        /// <summary>
        /// Constructor
        /// </summary>
        public DrawToolbar()
        {
            InitializeComponent();
        }

        private void buttonPointObject_Click(object sender, EventArgs e)
        {
            CommandManager.Instance.ExecuteCommand(new Commands.Point());
        }

        private void DrawToolbar_FormClosed(object sender, FormClosedEventArgs e)
        {
            DrawManager.Instance.DrawToolbarActive = false;
        }

        private void toolStripButton2_Click(object sender, EventArgs e)
        {
            CommandManager.Instance.ExecuteCommand(new Commands.LinearSpline());
        }
    }
}